        <?php
	if (isset($room)) {
		foreach ($room as $key => $value) {
			$e_room[$value] = $value;
		}
	}
        ?>  
<div class="select_value">
    <fieldset >
        <legend>
            <b style="color: #00749f;">количество комнат</b>
        </legend>
        <input   
        
        <?php if(isset($e_room['0'])){ echo 'checked="checked"'; } ?>
       type="checkbox" value="0" name="room[]">
        Комната
        <input 
        <?php if(isset($e_room['1'])){ echo 'checked="checked"'; } ?>
       type="checkbox" checked="" value="1" name="room[]">
        1
        <input 
        <?php if(isset($e_room['2'])){ echo 'checked="checked"'; } ?>
       type="checkbox" checked="" value="2" name="room[]">
        2
        <input 
        <?php if(isset($e_room['3'])){ echo 'checked="checked"'; } ?>
       type="checkbox"  checked="" value="3" name="room[]">
        3
        <input 
        <?php if(isset($e_room['4'])){ echo 'checked="checked"'; } ?>
       type="checkbox"  checked="" value="4" name="room[]">
        4
        <input 
        <?php if(isset($e_room['5'])){ echo 'checked="checked"'; } ?>
       type="checkbox" checked="" value="5" name="room[]">
        5
        <input 
        <?php if(isset($e_room['6'])){ echo 'checked="checked"'; } ?>
       type="checkbox" checked="" value="6" name="room[]">
        6(+) <span style="font-size:14px;color:red;text-decoration:blink;">*</span>
        <input 
        <?php if(isset($e_room['7'])){ echo 'checked="checked"'; } ?>
       type="checkbox" value="7" name="room[]">
        своб.план.
        <br>
        <input 
        <?php if(isset($e_room['8'])){ echo 'checked="checked"'; } ?>
       type="checkbox" value="8" name="room[]">
        доля в квартире
    </fieldset>
</div>
